package com.wunu.zn.api.appliance.model;

import java.util.List;
import java.util.Map;

import common.plugin.mybatis.Db;
import common.plugin.mybatis.Model;
import common.plugin.mybatis.Table;
@Table("t_user_address")
public class AddressEntity extends Model<AddressEntity>{
	/**
	 * 查询用户地址列表
	 * @param openId
	 * @return
	 */
	public static List<Map<String, Object>> getAddressList(String openId) {
		
		String sql="SELECT * FROM t_ppmhtv_machine_bind A WHERE A.openId = #{openId}  ORDER BY m.createTime ";
		 List<Map<String, Object>> list = Db.find(sql, "openId", openId);
		  if(list!=null && list.size()>0){
			  return list;
			}
		
		 return null;
	}
}
